<? include 'server_config.php'; 

if($_SESSION['user_idx'] == "")
{
	?>
	<script>
		location.href='login.php';
	</script>
	<?
	return;
}

if($page=="" || $page<1)
{
	$page=1;
}


?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
 	<title>NextDoorDoctor : 넥스트도어닥터 - 내 쪽지함</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="Stylesheet" type="text/css" href="./css/nddCommon.css" />
	<script type="text/javascript" src="./js/jquery-1.6.2.min.js"></script>

	<script>
	function memo_display_list(page)
	{
		$('#img_show_more').attr("src", "./img/loading.gif");

//		alert(documnet_idx);

		$('#memo_list').load('memo_list.php', { 'page' : page});

	}	
	$(document).ready(function(){ 
		memo_display_list('<? echo $page;?>' ); 
		});
	</script>
</head>
<body>
<div id="menu_expand"><span></span></div>
	<div id='wrapper'>
		<?
        include "top_menu.php";
        ?>
				
		<div id='left_bg'>
		</div>


		<div id='title'>
			<div id='title_margin_top'><span></span></div>
			<div style='width:195px;height:29px;float:left;'></div>
			<div style='width:41px;height:29px;float:left;'><img src="./img/top_icon_input.png"></div><div style='height:29px;float:left;margin-top:3px;'><span id='article_content' >

			총 <span id="memo_count"></span>개의 쪽지가 있습니다.

			
			&nbsp;</span></div><div style='height:29px;float:left;'><!--img src="./img/button_view_my_chart.png"--></div>
		</div>
		
		<?
		$current_file = basename(__FILE__);
		include 'side_menu_manage.php';
		?>

		<div id='middle_bg'>
		</div>

		<div id='document_content' style="width:776px;float:left;">
			<div style='height:2px;width:100%;background:#cccccc;float:left;'><span><span></div>
			<div style='height:3px;width:100%;float:left;'><span><span></div>

			<div style="width:714px;background:#F2F2F2;float:left;border:1px solid #E9E9E9;padding:30px;" id="memo_list"></div>
			<? include "footer.php";?>
		</div>

		
	</div>
</body>
</html>